import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:shousi/components/button.dart';

class IntroPage extends StatelessWidget {
  const IntroPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        backgroundColor: const Color.fromARGB(255, 138, 60, 55),
        body: Padding(
          padding: const EdgeInsets.all(25.0),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start, // 表示位置，在左側
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            children: <Widget>[
              const SizedBox(height: 50),
              Text('SUSHI MAN',
                  style: GoogleFonts.dmSerifDisplay(
                      fontSize: 28, color: Colors.white)),
              const SizedBox(height: 25),
              Padding(
                padding: const EdgeInsets.all(50.0),
                child: Image.asset('images/ebi.png'),
              ),
              Text('THE TASTE OF JAPANESE FOOD',
                  style: GoogleFonts.dmSerifDisplay(
                      fontSize: 44, color: Colors.white)),
              Text(
                  'Feel the taste of the most popular Japanese food from anywhere and anytime',
                  style: TextStyle(color: Colors.grey[200], height: 2)),
              const SizedBox(height: 25),
               MyButton(
                  text: 'GET STARTED',
                  onTap: () {
                    Navigator.pushNamed(context, '/menupage');
                  })
            ],
          ),
        ));
  }
}
